package br.com.kitnet.sample.poa;

import junit.framework.TestCase;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import br.com.kitnet.sample.injecaodependencia.Competidor;

public class Teste extends TestCase {

	public Teste() {
		super();
	}

	public Teste(String name) {
		super(name);
	}

	public void tesPOA() {
		ApplicationContext ctx = new ClassPathXmlApplicationContext(
				"applicationContext.xml");
		Competidor competidor1 = (Competidor) ctx.getBean("pedro");
    //teste
		competidor1.apresentar(); //teste
		
	}
}
